<?xml version="1.0" encoding="utf-8"?>
<hibernate-mapping assembly="SimCMS.Model" namespace="SimCMS.Model" xmlns="urn:nhibernate-mapping-2.2">
  <class name="Simmember" table="Sim_member" lazy="true" >
    <id name="Id">
      <generator class="identity" />
      <!--<column name="Id" sql-type="int" not-null="true" />-->
    </id>
    <property name="UserName">
      <column name="UserName" sql-type="char" not-null="false" />
    </property>
    <property name="Password">
      <column name="Password" sql-type="char" not-null="false" />
    </property>
    <property name="Encrypt">
      <column name="Encrypt" sql-type="char" not-null="false" />
    </property>
    <property name="NickName">
      <column name="NickName" sql-type="char" not-null="false" />
    </property>
    <property name="RegDate">
      <column name="RegDate" sql-type="datetime" not-null="false" />
    </property>
    <property name="LastDate">
      <column name="LastDate" sql-type="datetime" not-null="false" />
    </property>
    <property name="RegIP">
      <column name="RegIP" sql-type="nvarchar" not-null="false" />
    </property>
    <property name="LastIP">
      <column name="LastIP" sql-type="nvarchar" not-null="false" />
    </property>
    <property name="LoginNum">
      <column name="LoginNum" sql-type="int" not-null="false" />
    </property>
    <property name="Email">
      <column name="Email" sql-type="nvarchar" not-null="false" />
    </property>
    <!--<many-to-one insert="false" update="false" lazy="false" name="GroupId">
      <column name="GroupId" sql-type="int" not-null="false" />
    </many-to-one>-->
    <property name="GroupId">
      <column name="GroupId" sql-type="int" not-null="false" />
    </property>
    <property name="AreaId">
      <column name="AreaId" sql-type="int" not-null="false" />
    </property>
    <property name="Amount">
      <column name="Amount" sql-type="int" not-null="false" />
    </property>
    <property name="Point">
      <column name="Point" sql-type="int" not-null="false" />
    </property>
    <property name="ModelId">
      <column name="ModelId" sql-type="int" not-null="false" />
    </property>
    <property name="Message">
      <column name="Message" sql-type="bit" not-null="false" />
    </property>
    <property name="IsLock">
      <column name="IsLock" sql-type="bit" not-null="false" />
    </property>
    <property name="VIP">
      <column name="VIP" sql-type="int" not-null="false" />
    </property>
    <property name="OverDueDate">
      <column name="OverDueDate" sql-type="datetime" not-null="false" />
    </property>
    <property name="SiteId">
      <column name="SiteId" sql-type="int" not-null="false" />
    </property>
    <bag name="SimFavorite" inverse="true" cascade="none">
      <key column="UserId" />
      <one-to-many class="SimFavorite" />
    </bag>
  </class>
</hibernate-mapping>